/*
 * @Author: Zhouhai 497675647@qq.com
 * @Date: 2023-02-10 20:57:34
 * @LastEditors: Zhouhai 497675647@qq.com
 * @LastEditTime: 2023-03-03 15:57:56
 */
const getBaseUrl = (url) => {
  let BASE_URL = '';
  if (process.env.NODE_ENV === 'development') {
    //开发环境 - 根据请求不同返回不同的BASE_URL
    BASE_URL = 'http://127.0.0.1:8080'
  } else {
    // 生产环境
    if (url.includes('/api/')) {
      BASE_URL = ''
    } else if (url.includes('/iatadatabase/')) {
      BASE_URL = ''
    }
  }
  return BASE_URL
}

export default getBaseUrl;
